const db = require("./db");
// name: "",
// reason: "",
// departmentname: "",
// timevalue1: "",
// Causedescription: "",
// mobile: store.state.user.userInfo.data.mobile,
const LeaveSchema = new db.mongoose.Schema({
  mobile: {
    type: String,
    required: true,
  },
  name: {
    type: String,
    required: true,
  },
  reason: {
    type: String,
    required: true,
  },
  departmentname: {
    type: String,
    required: true,
  },
  timevalue1: {
    type: String,
    required: true,
  },
  Causedescription: {
    type: String,
    required: true,
  },
  leavestatus:{
    type: Boolean,
    required: false,
    default:true
  },
});

module.exports = db.mongoose.model("Leaves", LeaveSchema);
